package com.zzx.boot;

import com.zzx.boot.mapper.EmployeeMapper;
import com.zzx.boot.pojo.Employee;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class testMapper {

    @Autowired
    private EmployeeMapper mapper;

    @Test
    public void test01(){
        Employee employee = new Employee();
        employee.setPassword("e10adc3949ba59abbe56e057f20f883e");
        employee.setUsername("admin");
        Employee employee1 = mapper.selectByIdAndName(employee);
        System.out.println(employee1);
    }
}
